Optimal. Leaf size=68 \[ \frac {\cos (e+f x) \, _2F_1\left (1,\frac {1}{2}+m;\frac {3}{2}+m;\frac {1}{2} (1+\sin (e+f x))\right ) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.107, Rules used = {2824, 2746, 70}
\begin {gather*} \frac {\cos (e+f x) (a \sin (e+f x)+a)^m \, _2F_1\left (1,m+\frac {1}{2};m+\frac {3}{2};\frac {1}{2} (\sin (e+f x)+1)\right )}{f (2 m+1) \sqrt {c-c \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 70
Rule 2746
Rule 2824
Rubi steps
\begin {align*} \int \frac {(a+a \sin (e+f x))^m}{\sqrt {c-c \sin (e+f x)}} \, dx &=\frac {\cos (e+f x) \int \sec (e+f x) (a+a \sin (e+f x))^{\frac {1}{2}+m} \, dx}{\sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=\frac {(a \cos (e+f x)) \text {Subst}\left (\int \frac {(a+x)^{-\frac {1}{2}+m}}{a-x} \, dx,x,a \sin (e+f x)\right )}{f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=\frac {\cos (e+f x) \, _2F_1\left (1,\frac {1}{2}+m;\frac {3}{2}+m;\frac {1}{2} (1+\sin (e+f x))\right ) (a+a \sin (e+f x))^m}{f (1+2 m) \sqrt {c-c \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(157\) vs. \(2(68)=136\).
time = 0.98, size = 157, normalized size = 2.31 \begin {gather*} \frac {2^{-\frac {3}{2}-2 m} \left (4^m \, _2F_1\left (1,2 m;1+2 m;\sin \left (\frac {1}{4} (2 e+\pi +2 f x)\right )\right )-\, _2F_1\left (2 m,2 m;1+2 m;\frac {1}{2} \left (1-\tan ^2\left (\frac {1}{8} (2 e-\pi +2 f x)\right )\right )\right ) \sec ^2\left (\frac {1}{8} (2 e-\pi +2 f x)\right )^{2 m}\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) (a (1+\sin (e+f x)))^m}{f m \sqrt {c-c \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.12, size = 0, normalized size = 0.00 \[\int \frac {\left (a +a \sin \left (f x +e \right )\right )^{m}}{\sqrt {c -c \sin \left (f x +e \right )}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{m}}{\sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+a\,\sin \left (e+f\,x\right )\right )}^m}{\sqrt {c-c\,\sin \left (e+f\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________